package io.renren.modules.communityService.conver;

import io.renren.modules.communityService.dto.DbUserDTO;
import io.renren.modules.communityService.entity.DbUserEntity;
import io.renren.modules.communityService.vo.DbUserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenweilong
 * @email 1433471850@qq.com
 * @date 2020-02-07 12:36
 */
@Mapper
public interface DbUserConver {

    DbUserConver MAPPER =  Mappers.getMapper(DbUserConver.class);

    DbUserEntity converDTO(DbUserDTO dbUserDTO);

    List<DbUserEntity> converDTO(List<DbUserDTO> dbUserDTOs);

    DbUserVO conver(DbUserEntity dbUserEntities);

    List<DbUserVO> conver(List<DbUserEntity> dbUserEntities);

}
